import * as tslib_1 from "tslib";
import { Injectable } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Form, NgFormControl, NgValidateForm } from '@farris/devkit';
var DetailFormComponentViewmodelForm = /** @class */ (function (_super) {
    tslib_1.__extends(DetailFormComponentViewmodelForm, _super);
    function DetailFormComponentViewmodelForm() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    tslib_1.__decorate([
        NgFormControl({
            id: 'merchantName_9615afa1_dqyy',
            name: "{{merchantName_9615afa1_dqyy}}",
            binding: 'merchantName',
            updateOn: 'blur',
            defaultI18nValue: '商户名称',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "merchantName", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'merchantCode_519d018f_797z',
            name: "{{merchantCode_519d018f_797z}}",
            binding: 'merchantCode',
            updateOn: 'blur',
            defaultI18nValue: '商户编号',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "merchantCode", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'companyType_a055831a_sdmc',
            name: "{{companyType_a055831a_sdmc}}",
            binding: 'companyType',
            updateOn: 'blur',
            defaultI18nValue: '企业类型',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "companyType", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'merchantType_6b04b7dd_7g2x',
            name: "{{merchantType_6b04b7dd_7g2x}}",
            binding: 'merchantType',
            updateOn: 'blur',
            defaultI18nValue: '商户类型',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "merchantType", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'realName_e300b65d_b2x8',
            name: "{{realName_e300b65d_b2x8}}",
            binding: 'realName',
            updateOn: 'blur',
            defaultI18nValue: '真实姓名',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "realName", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'fullName_899e9050_86e0',
            name: "{{fullName_899e9050_86e0}}",
            binding: 'fullName',
            updateOn: 'blur',
            defaultI18nValue: '企业全称',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "fullName", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'businessLicense_486974f9_opcf',
            name: "{{businessLicense_486974f9_opcf}}",
            binding: 'businessLicense',
            updateOn: 'blur',
            defaultI18nValue: '营业执照编码',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "businessLicense", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'address_a09c14e2_69sh',
            name: "{{address_a09c14e2_69sh}}",
            binding: 'address',
            updateOn: 'blur',
            defaultI18nValue: '商户地址',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "address", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'email_ebe02e9c_bp32',
            name: "{{email_ebe02e9c_bp32}}",
            binding: 'email',
            updateOn: 'blur',
            defaultI18nValue: '邮箱',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "email", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'telephone_e8771eee_c6sh',
            name: "{{telephone_e8771eee_c6sh}}",
            binding: 'telephone',
            updateOn: 'blur',
            defaultI18nValue: '联系电话',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "telephone", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'remark_4b902a26_9wfk',
            name: "{{remark_4b902a26_9wfk}}",
            binding: 'remark',
            updateOn: 'blur',
            defaultI18nValue: '备注',
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "remark", void 0);
    DetailFormComponentViewmodelForm = tslib_1.__decorate([
        Injectable(),
        NgValidateForm({
            formGroupName: '加盟商管理',
            enableValidate: true
        }),
        Injectable()
    ], DetailFormComponentViewmodelForm);
    return DetailFormComponentViewmodelForm;
}(Form));
export { DetailFormComponentViewmodelForm };
